Link the data url tests statically
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 Feb 2021 14:02:06 +0000 (09:02 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 3 Feb 2021 14:02:06 +0000 (09:02 -0500)
Thats the cleaner way to test internal apis.

testsuite/css/meson.build

index 82b8984276eeda792a28968b3fc54f200180944d..f8d13fe548fd61cdd3d48fcb52f6115074ea363f 100644 (file)
@@ -29,10 +29,10 @@ test('api', test_api,
   suite: 'css',
 )
 
-test_data = executable('data', ['data.c', '../../gtk/css/gtkcssdataurl.c'],
+test_data = executable('data', 'data.c',
   c_args: common_cflags,
   include_directories: [confinc, ],
-  dependencies: gtk_deps,
+  dependencies: libgtk_static_dep,
   install: get_option('install-tests'),
   install_dir: testexecdir,
 )